import java.util.concurrent.*;
import java.util.ArrayList;
import java.util.List;
//import java.util.List;
/**
 * {@link http://docs.oracle.com/javase/7/docs/api }
 * @author Liang
 * 
 */
public class test {


	public static void main(String[] argv )
	{
		//java.lang.System.
		//  cpu =  java.lang.getRuntime();
		//		java.lang.management.OperatingSystemMXBean;
		//System.out.print(java.lang.Runtime.getRuntime().availableProcessors());
		try{
		int sum =0;
		int count = 0;
		java.util.Scanner input =new java.util.Scanner(new java.io.BufferedReader(new java.io.FileReader("txt.txt")));
		while(input.hasNextInt())
		{
			int i = input.nextInt();
			sum+= i;
			++count;
			System.out.print(i);
			System.out.print(' ');
		}
		float result = ((float)sum)/count;
		System.out.print("Sum="+sum+", Count="+count+", Average="+result );
		}catch(Exception e){
			e.printStackTrace();
			System.exit(0);
		}
	}
}
